package org.zoomdy.gdbx.os;

import org.zoomdy.gdbx.arch.Register;


public class ThreadContext
{
    public int offset;
    public int length;
    public Register[] arrayRegisters;
    ThreadContextType threadContextType;
    
    public ThreadContext(ThreadContextType threadContextType)
    {
        this.threadContextType = threadContextType;
    }
    
    public Register getRegister(String name)
    {
        for(int i = 0; i < this.arrayRegisters.length; i++)
        {
            if(this.arrayRegisters[i].name.equals(name))
            {
                return this.arrayRegisters[i];
            }
        }
        
        return null;
    }
}
